package cn.masterj.springcloud.service;

import cn.masterj.springcloud.CommonResult;
import cn.masterj.springcloud.entity.Account;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author masterJ
 * @create 2020-04-20 17:32
 */
@FeignClient(value = "cloudalibaba-seat-account")
public interface IAccountService {


    /**
     * 新增一条金额减少100的记录
     * @param id
     * @return
     */
    @GetMapping("/account/payment/{id}")
    CommonResult<Account> payment(@PathVariable("id") Long id);
}
